package com.atguigu.daijia.order.service;

import com.atguigu.daijia.model.entity.order.OrderMonitor;
import com.atguigu.daijia.model.entity.order.OrderMonitorRecord;
import com.baomidou.mybatisplus.extension.service.IService;

public interface OrderMonitorService extends IService<OrderMonitor> {
    /**
     * 保存订单监控记录到 MongoDB
     * @param orderMonitorRecord
     * @return
     */
    Boolean saveOrderMonitorRecord(OrderMonitorRecord orderMonitorRecord);

    /**
     * 保存订单监控统计记录
     * @param orderMonitor
     * @return
     */
    Long saveOrderMonitor(OrderMonitor orderMonitor);

    /**
     * 根据订单 ID 查询订单监控统计记录
     * @param orderId
     * @return
     */
    OrderMonitor getOrderMonitorByOrderId(Long orderId);

    /**
     * 更新订单监控统计记录
     * @param orderMonitor
     * @return
     */
    Boolean updateOrderMonitor(OrderMonitor orderMonitor);


}
